import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/mes/sparePartRecord/add',
    method: 'put',
    data
  })
}
export function getList(query) {
  return request({
    url: '/mes/sparePartRecord/page',
    method: 'get',
    params: query
  })
}
